<template>
<div>
    <button @click="goback">返回</button>
  <div>详情页---{{id}}</div>
</div>
</template>

<script>
export default {
props:['id'],
methods: {
    goback(){
        this.$router.go(-1)
    }
},
}
</script>

<style>

</style>